#ifndef _IMAGE_RESIZE_LETTERBOXRESIZE_
#define _IMAGE_RESIZE_LETTERBOXRESIZE_

#include "../../../function.h"

namespace sp::Image::Resize{

void registe_letterBoxResize();

class letterBoxResize: public Function{
private:
    int width;
    int height;
public:
    letterBoxResize(std::vector<std::string> v); // int width, int height
    letterBoxResize(int width, int height); // int width, int height
    letterBoxResize(); 
    virtual ~letterBoxResize();
    static void registe();
    static Function* createObject(std::vector<std::string> params);
    static Function* createObject2();
    virtual void start();
    virtual bool waitForResource();
    virtual void process(std::vector<std::vector<Data*>>& data_input, std::vector<Data*>& data_output);
    virtual bool releaseResource();
    virtual void finish();
    virtual void copy(Function* other);
};

};

#endif